/*
 * Copyright (c) 2020 hebeiyiliuba.com
 * All rights reserved.
 *
 */
package org.jeecg.modules.third.jg.report.freight.information.service;

import com.alibaba.fastjson.JSON;
import org.apache.commons.lang.StringUtils;
import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.common.util.DateUtils;
import org.jeecg.common.util.RedisUtil;
import org.jeecg.modules.third.jg.report.freight.information.constant.SdReportConstant;
import org.jeecg.modules.third.jg.report.freight.information.constant.SxReportConstant;
import org.jeecg.modules.third.jg.report.freight.information.constant.enums.ReportDocTypeEnum;
import org.jeecg.modules.third.jg.report.freight.information.model.R;
import org.jeecg.modules.third.jg.report.freight.information.model.Root;
import org.jeecg.modules.third.jg.report.freight.information.util.WebUtils;
import org.jeecg.modules.third.jg.report.freight.information.util.sm.SM2Util;
import org.jeecg.modules.third.jg.report.freight.information.util.sm.SM4Util;
import org.jeecg.modules.wlhy.hyconfig.entity.HyConfig;
import org.jeecg.modules.wlhy.utils.HyConfigUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * 山东省平台上报服务
 * @author duanlikao
 * @created 2022/01/06
 */
@Service
public class SdReportPlatformService {
    private static final Logger LOGGER = LoggerFactory.getLogger(SdReportPlatformService.class);

    @Resource
    private  RedisUtil redisUtil;

    @Value(value="${sd-report-platform.domain}")
    private String reportPlatformDomain ;

    /**
     * 获取到的公钥
     * @return
     */
    private String getMs2Public() throws Exception {
        return null;
    }

    private String getLoginToken () throws Exception{
        return null;
    }

    /**
     * 组装交换报文
     * @param reportDocTypeEnum 上报单据类型
     * @param jsonString 报文内容
     * @param systemConfig
     * @return
     */
    private Root messageAssembly(ReportDocTypeEnum reportDocTypeEnum ,String jsonString , HyConfig systemConfig)
            throws Exception {
        return null;
    }

    /**
     * 发送上报
     * @param reportDocTypeEnum
     * @param jsonString
     */
    public String  sendReport(ReportDocTypeEnum reportDocTypeEnum ,String jsonString)  throws Exception {
        return null;
    }




}
